package com.dayuan.vo;

import java.io.Serializable;
import java.util.List;

/**
 * 一共三级类目 只有一级类目 {id:1,name:"点心\蛋糕",pid:0,subList:[]} 一级类目下有一个二级类目，没有三级类目
 * {id:1,name:"点心\蛋糕",pid:0,subList:[{id:4,name:"点心",pid:0,subList:[]}]}
 * 一级类目下有两个二级类目，没有三级类目
 * {id:1,name:"点心\蛋糕",pid:0,subList:[{id:4,name:"点心",pid:0,subList:[]},{id:3,name:"蛋糕",pid:1,subList:[]}]}
 * 蛋糕下有三级类目
 * {id:1,name:"点心\蛋糕",pid:0,subList:[{id:1,name:"点心",pid:0,subList:[]},{id:1,name:"蛋糕",pid:0,subList:[{id:1,name:"蒸蛋糕",pid:0,subList:[]}]}]}
 * 两个一级菜单
 * [{id:1,name:"点心\蛋糕",pid:0,subList:[]},{id:1,name:"饼干\膨化",pid:0,subList:[]}]
 * 
 * @author sam
 *
 */
public class GoodsTypeVo implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 2002474329905077677L;
	
	private Integer id;
	private String name;
	private String pid;
	private List<GoodsTypeVo> subList;

	public GoodsTypeVo(Integer id, String name, String pid) {
		this.id = id;
		this.name = name;
		this.pid = pid;
	}
	
	public GoodsTypeVo(Integer id, String name, String pid,List<GoodsTypeVo> subList) {
		this.id = id;
		this.name = name;
		this.pid = pid;
		this.subList = subList;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public void setSubList(List<GoodsTypeVo> subList) {
		this.subList = subList;
	}

	public List<GoodsTypeVo> getSubList() {
		return subList;
	}
}
